@SpringBootTest
public class GoodsTest {

    @Autowired
    private IGoodsMapper goodsMapper;

    @Test
    void testSelectList() {
        List<Goods> list = goodsMapper.selectList(null); // 应该能正常运行
        System.out.println(list);
    }
}
